How Do I Export a Diagram to a Bitmap?

Use the DiagramBitmapRenderer class.

Renderers for PNG, JPEG and BMP file formats are included; to export to additional formats, derive your own class from DiagramBitmapRenderer and override the GetBitmapEncoder method.